package org.suyafei.service;

import org.suyafei.controller.request.AccountLoginRequest;
import org.suyafei.controller.request.AccountRegisterRequest;
import org.suyafei.utils.JsonData;

/**
 * @author 宿某人
 * @Date: 2021/12/06/4:38 下午
 * @Description:
 */
public interface AccountService {
    /**
     * 用户注册
     * @param accountRegisterRequest
     * @return
     */
    JsonData register(AccountRegisterRequest accountRegisterRequest);

    /**
     * 登录
     * @param request
     * @return
     */
    JsonData login(AccountLoginRequest request);
}
